package com.itheima.dao;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingDao {

    //添加预约日期设置
    public void add(OrderSetting orderSetting);

    //更新预约日期设置
    public void editNumberByOrderDate(OrderSetting orderSetting);

    //根据日期查询是否已经进行预约设置
    public long findCountByOrderDate(Date orderDate);

    //根据日期范围查询
    public List<OrderSetting> getOrderSettingByMonth(Map<String, String> map);

    //根据日期查询是否已经进行预约设置,(查询用户所选择的预约日期是否已经提前进行了预约设置)
    public OrderSetting findByOrderDate(Date orderDate);

    //更新已预约人数
    public void editReservationsByOrderDate(OrderSetting orderSetting);

}
